<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/22
 * Time: 23:09
 */

namespace app\shared\model;


use app\BaseModel;

class Province extends BaseModel
{
    public $allowQuery = 'province_code,province_name';

    protected function base($query)
    {
        $query->where('status', 1);
    }

//    public function City()
//    {
//        return $this->hasMany('City','province_code','province_code')->field('city_id,province_code');
//    }
}